package com.netrust.cmsx.entity.module.cms;

import static javax.persistence.GenerationType.IDENTITY;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;



/**
 * 文章审核表
 * @author Administrator
 *
 */
@Entity
@Table(name="t_article_audit")
public class ArticleAudit {
	
    private Integer id;

    private Integer aid;//文章表关联ID

    private Integer status;//审核状态

    private String reason;//审核结果原因

    private String user;//审核人

    private Timestamp time;//审核时间
    
   // private Article article;
    
	public ArticleAudit() {
		super();
	}
	
	
	
	public ArticleAudit(Integer id, Integer aid, Integer status, String reason, String user, Timestamp time) {
		super();
		this.id = id;
		this.aid = aid;
		this.status = status;
		this.reason = reason;
		this.user = user;
		this.time = time;
	}



	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "aa_id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "aa_aid")
	public Integer getAid() {
		return aid;
	}
	public void setAid(Integer aid) {
		this.aid = aid;
	}
	
	@Column(name = "aa_status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name = "aa_reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	@Column(name = "aa_user")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	@Column(name = "aa_time")
	public Timestamp getTime() {
		return time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	
	/*public Article getArticle() {
		return article;
	}
	public void setArticle(Article article) {
		this.article = article;
	}*/

	@Override
	public String toString() {
		return "ArticleAudit [id=" + id + ", aid=" + aid + ", status=" + status + ", reason=" + reason + ", user="
				+ user + ", time=" + time + "]";
	}
    
}